package com.wish.g1.house.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wish.g1.house.entity.Housing;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 楼盘表 Mapper 接口
 * </p>
 *
 * @author Dragon
 * @since 2022-11-18
 */
public interface HousingMapper extends BaseMapper<Housing> {

    /**
     * 查询楼盘
     *
     * @param id 楼盘主键
     * @return 楼盘
     */
    public Housing selectHousingById(Long id);

    /**
     * 查询楼盘列表
     *
     * @param housing 楼盘
     * @return 楼盘集合
     */
    public List<Housing> selectHousingList(Housing housing);

    /**
     * 新增楼盘
     *
     * @param housing 楼盘
     * @return 结果
     */
    public int insertHousing(Housing housing);

    /**
     * 修改楼盘
     *
     * @param housing 楼盘
     * @return 结果
     */
    public int updateHousing(Housing housing);

    /**
     * 删除楼盘
     *
     * @param id 楼盘主键
     * @return 结果
     */
    public int deleteHousingById(Long id);

    /**
     * 批量删除楼盘
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHousingByIds(Long[] ids);
}
